{template 'admin','header'}
<form action="{URL}" method="POST" onsubmit="return r_submit(this);">
    <table cellpadding="2" cellspacing="1" class="table_form">
        <caption>添加栏目</caption>
        <tr>
            <th width="20%"><strong>上级栏目</strong></th>
            <td>
                <select name="parentid" id="parentid">
                  <option value="">请选择</option>
                  {loop $category_list $key=>$value}
                    <option value="{$key}">{$value}</option>
                  {/loop}
                </select>
                <script>
                    $("#parentid").val("{$info['parentid']}");
                 </script>
            </td>
        </tr>
        <tr>
            <th width="20%"><strong>模型</strong></th>
            <td>
                <select name="modelid" id="modelid">
                  <option value="">请选择</option>
                  {loop $model_list $key=>$value}
                    <option value="{$key}">{$value}</option>
                  {/loop}
                </select>
                <script>
                    $("#modelid").val("{$info['modelid']}");
                 </script>
            </td>
        </tr>
        <tr>
            <th width="20%"><strong>工作流程</strong></th>
            <td>
                <select name="workflowid" id="workflowid">
                  <option value="">请选择</option>
                  {loop $workflow_list $workflow}
                    <option value="{$workflow['id']}">{$workflow['name']}</option>
                  {/loop}
                </select>
                <script>
                    $("#workflowid").val("{$info['workflowid']}");
                 </script>
            </td>
        </tr>
        <tr>
            <th width="20%"><font color="red">*</font><strong>栏目名称</strong></th>
            <td>
                <input type="text" id="catname" name="catname" size="20" value="{$info['catname']}"/>
            </td>
        </tr>
        <tr>
        	<th><strong>栏目特征码</strong></th>
        	<td>
        		<input type="text" id="catcode" name="catcode" size="20" value="{$info['catcode']}"/>
        	</td>
        </tr>
        <tr>
            <th><font color="red">*</font><strong>栏目目录</strong></th>
            <td>
                <input type="text" id="catdir" name="catdir" size="20" value="{$info['catdir']}"/>
            </td>
        </tr>
        <tr>
            <th><strong>栏目图片</strong></th>
            <td>
                {form::image("image","image","$info[image]")}
            </td>
        </tr>
        <tr>
            <th><strong>栏目介绍</strong></th>
            <td>
                {form::editor("description","description","$info[description]")}
                <!--<textarea name="description" rows="2" cols="20" id="description" class="inputtext" style="height: 100px; width: 500px;">{$info['description']}</textarea>-->
            </td>
        </tr>
        <!--<tr>
            <th><strong>加入菜单</strong></th>
            <td>
                <input type="checkbox" name="ismenu" value="1" />
                <script>
                    $("input:checkbox[value={$info['ismenu']}]").attr("checked",'checked');
                </script>
            </td>
        </tr>-->
        <tr>
            <th><strong>栏目列数</strong></th>
            <td>
                <input type="text" id="cat_page" name="cat_page" size="3" value="{$info['cat_page']}"/>
            </td>
        </tr>
        <tr>
            <th><strong>转向链接</strong></th>
            <td>
                <input type="checkbox" name="islink" value="1" {if $info['islink']==1} checked {/if} />
                <input type="text" id="linkurl" name="linkurl" size="40" value="{$info['linkurl']}"/>
            </td>
        </tr>
        <tr>
            <th><strong>加入导航</strong></th>
            <td>
                {form::check_yesno('isnavigation','','',1,0,$info['isnavigation'])}
            </td>
        </tr>
        <tr>
            <th><strong>是否显示</strong></th>
            <td>
                <input type="checkbox" name="isshow" value="1" {if $info['isshow']==1} checked {/if}/>
            </td>
        </tr>
        <tr>
            <th><strong>着重显示</strong></th>
            <td>
                <input type="checkbox" name="isciew" value="1" {if $info['isciew']==1} checked {/if}/>
            </td>
        </tr>
        <tr>
            <th><strong>允许发布到其他栏目</strong></th>
            <td>
                {form::check_yesno('showother','','',1,0,$info['showother'])}
            </td>
        </tr>
        <tr>
            <th><strong>在发布到其他栏目中显示</strong></th>
            <td>
                {form::check_yesno('showinother','','',1,0,$info['showinother'])}
            </td>
        </tr>
        <tr>
            <th><strong>栏目模板</strong></th>
            <td>
                {form::select_template("c_temp","c_temp","$info[c_temp]","category")}
            </td>
        </tr>
        <tr>
            <th><strong>列表模板</strong></th>
            <td>
                {form::select_template("l_temp","l_temp","$info[l_temp]","list")}
            </td>
        </tr>
        <tr>
            <th><strong>内容模板</strong></th>
            <td>
                {form::select_template("s_temp","s_temp","$info[s_temp]","show")}
            </td>
        </tr>
        <tr>
            <th></th>
            <td>
                <input type="submit" value=" 确定 " class="button_style">&nbsp;
                <input type="button" class="button_style" onclick="self.location='{urldecode($forward)}'" value=" 返回 ">
            </td>
        </tr>
    </table>
    <input type="hidden" name="catid" value="{$info['catid']}">
    <input type="hidden" name="forward" value="{$forward}">
</form>
{template 'admin','footer'}
